package me.ratel.demo.wechat;

import me.ratel.demo.eBook.infrastructure.exceptions.DefaultErrorHeader;
import me.ratel.demo.eBook.infrastructure.exceptions.IErrorHeader;

/**
 * @author: zhouyaming
 * @time: 2016/7/3 10:57
 */
public class WeChatConstants {
    // 错误码
    public static class ErrorHeader {
        public static final IErrorHeader REQUEST_WECHAT_SERVER_ERROR = new DefaultErrorHeader(101001, "请求微信服务器失败");
    }

    // 交易类型
    public enum TradeType {
        JSAPI("JSAPI");
        private String value;

        TradeType(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }
}